package com.pbl6.back.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.Objects;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "record")
public class Record{
    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String operator;
    private Integer year;
    private Integer month;
    private Integer day;
    private String rubric;
    private String journal;
    private String pubdate;
    
    public Record(Record record) {
        if (Objects.nonNull(record)) {
            this.id=record.id;
            this.operator=record.operator;
            this.year=record.year;
            this.month=record.month;
            this.day=record.day;
            this.rubric=record.rubric;
            this.journal=record.journal;
            this.pubdate=record.pubdate;
        }
    }
}
